#ifndef BINSEM_H
#define BINSEM_H

#include <type.h>

#define BINSEM_OP_LOCK 0 // mutex acquire
#define BINSEM_OP_UNLOCK 1 // mutex release
#define BINSEMS 100 //number of all binsems

extern void init_binsems();
extern int get_binsem(int key);
extern int op_binsem(int binsem_id, int op);

#endif // BINSEM_H